Optimal. Leaf size=77 \[ -\frac {\left (a^2-b^2\right ) (a+b \sin (c+d x))^9}{9 b^3 d}+\frac {a (a+b \sin (c+d x))^{10}}{5 b^3 d}-\frac {(a+b \sin (c+d x))^{11}}{11 b^3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 77, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {2747, 711}
\begin {gather*} -\frac {\left (a^2-b^2\right ) (a+b \sin (c+d x))^9}{9 b^3 d}-\frac {(a+b \sin (c+d x))^{11}}{11 b^3 d}+\frac {a (a+b \sin (c+d x))^{10}}{5 b^3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 711
Rule 2747
Rubi steps
\begin {align*} \int \cos ^3(c+d x) (a+b \sin (c+d x))^8 \, dx &=\frac {\text {Subst}\left (\int (a+x)^8 \left (b^2-x^2\right ) \, dx,x,b \sin (c+d x)\right )}{b^3 d}\\ &=\frac {\text {Subst}\left (\int \left (\left (-a^2+b^2\right ) (a+x)^8+2 a (a+x)^9-(a+x)^{10}\right ) \, dx,x,b \sin (c+d x)\right )}{b^3 d}\\ &=-\frac {\left (a^2-b^2\right ) (a+b \sin (c+d x))^9}{9 b^3 d}+\frac {a (a+b \sin (c+d x))^{10}}{5 b^3 d}-\frac {(a+b \sin (c+d x))^{11}}{11 b^3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.83, size = 56, normalized size = 0.73 \begin {gather*} \frac {(a+b \sin (c+d x))^9 \left (-2 a^2+65 b^2+45 b^2 \cos (2 (c+d x))+18 a b \sin (c+d x)\right )}{990 b^3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(479\) vs.
\(2(71)=142\).
time = 1.41, size = 480, normalized size = 6.23 Too large to display
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 233 vs.
\(2 (71) = 142\).
time = 0.27, size = 233, normalized size = 3.03 \begin {gather*} -\frac {45 \, b^{8} \sin \left (d x + c\right )^{11} + 396 \, a b^{7} \sin \left (d x + c\right )^{10} - 1980 \, a^{7} b \sin \left (d x + c\right )^{2} + 55 \, {\left (28 \, a^{2} b^{6} - b^{8}\right )} \sin \left (d x + c\right )^{9} - 495 \, a^{8} \sin \left (d x + c\right ) + 495 \, {\left (7 \, a^{3} b^{5} - a b^{7}\right )} \sin \left (d x + c\right )^{8} + 990 \, {\left (5 \, a^{4} b^{4} - 2 \, a^{2} b^{6}\right )} \sin \left (d x + c\right )^{7} + 4620 \, {\left (a^{5} b^{3} - a^{3} b^{5}\right )} \sin \left (d x + c\right )^{6} + 1386 \, {\left (2 \, a^{6} b^{2} - 5 \, a^{4} b^{4}\right )} \sin \left (d x + c\right )^{5} + 990 \, {\left (a^{7} b - 7 \, a^{5} b^{3}\right )} \sin \left (d x + c\right )^{4} + 165 \, {\left (a^{8} - 28 \, a^{6} b^{2}\right )} \sin \left (d x + c\right )^{3}}{495 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 310 vs.
\(2 (71) = 142\).
time = 0.38, size = 310, normalized size = 4.03 \begin {gather*} \frac {396 \, a b^{7} \cos \left (d x + c\right )^{10} - 495 \, {\left (7 \, a^{3} b^{5} + 3 \, a b^{7}\right )} \cos \left (d x + c\right )^{8} + 660 \, {\left (7 \, a^{5} b^{3} + 14 \, a^{3} b^{5} + 3 \, a b^{7}\right )} \cos \left (d x + c\right )^{6} - 990 \, {\left (a^{7} b + 7 \, a^{5} b^{3} + 7 \, a^{3} b^{5} + a b^{7}\right )} \cos \left (d x + c\right )^{4} + {\left (45 \, b^{8} \cos \left (d x + c\right )^{10} - 10 \, {\left (154 \, a^{2} b^{6} + 17 \, b^{8}\right )} \cos \left (d x + c\right )^{8} + 330 \, a^{8} + 1848 \, a^{6} b^{2} + 1980 \, a^{4} b^{4} + 440 \, a^{2} b^{6} + 10 \, b^{8} + 10 \, {\left (495 \, a^{4} b^{4} + 418 \, a^{2} b^{6} + 23 \, b^{8}\right )} \cos \left (d x + c\right )^{6} - 12 \, {\left (231 \, a^{6} b^{2} + 660 \, a^{4} b^{4} + 275 \, a^{2} b^{6} + 10 \, b^{8}\right )} \cos \left (d x + c\right )^{4} + {\left (165 \, a^{8} + 924 \, a^{6} b^{2} + 990 \, a^{4} b^{4} + 220 \, a^{2} b^{6} + 5 \, b^{8}\right )} \cos \left (d x + c\right )^{2}\right )} \sin \left (d x + c\right )}{495 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 468 vs.
\(2 (65) = 130\).
time = 2.57, size = 468, normalized size = 6.08 \begin {gather*} \begin {cases} \frac {2 a^{8} \sin ^{3}{\left (c + d x \right )}}{3 d} + \frac {a^{8} \sin {\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{d} - \frac {2 a^{7} b \cos ^{4}{\left (c + d x \right )}}{d} + \frac {56 a^{6} b^{2} \sin ^{5}{\left (c + d x \right )}}{15 d} + \frac {28 a^{6} b^{2} \sin ^{3}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{3 d} - \frac {14 a^{5} b^{3} \sin ^{2}{\left (c + d x \right )} \cos ^{4}{\left (c + d x \right )}}{d} - \frac {14 a^{5} b^{3} \cos ^{6}{\left (c + d x \right )}}{3 d} + \frac {4 a^{4} b^{4} \sin ^{7}{\left (c + d x \right )}}{d} + \frac {14 a^{4} b^{4} \sin ^{5}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{d} - \frac {14 a^{3} b^{5} \sin ^{4}{\left (c + d x \right )} \cos ^{4}{\left (c + d x \right )}}{d} - \frac {28 a^{3} b^{5} \sin ^{2}{\left (c + d x \right )} \cos ^{6}{\left (c + d x \right )}}{3 d} - \frac {7 a^{3} b^{5} \cos ^{8}{\left (c + d x \right )}}{3 d} + \frac {8 a^{2} b^{6} \sin ^{9}{\left (c + d x \right )}}{9 d} + \frac {4 a^{2} b^{6} \sin ^{7}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{d} - \frac {2 a b^{7} \sin ^{6}{\left (c + d x \right )} \cos ^{4}{\left (c + d x \right )}}{d} - \frac {2 a b^{7} \sin ^{4}{\left (c + d x \right )} \cos ^{6}{\left (c + d x \right )}}{d} - \frac {a b^{7} \sin ^{2}{\left (c + d x \right )} \cos ^{8}{\left (c + d x \right )}}{d} - \frac {a b^{7} \cos ^{10}{\left (c + d x \right )}}{5 d} + \frac {2 b^{8} \sin ^{11}{\left (c + d x \right )}}{99 d} + \frac {b^{8} \sin ^{9}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{9 d} & \text {for}\: d \neq 0 \\x \left (a + b \sin {\left (c \right )}\right )^{8} \cos ^{3}{\left (c \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 272 vs.
\(2 (71) = 142\).
time = 7.39, size = 272, normalized size = 3.53 \begin {gather*} -\frac {45 \, b^{8} \sin \left (d x + c\right )^{11} + 396 \, a b^{7} \sin \left (d x + c\right )^{10} + 1540 \, a^{2} b^{6} \sin \left (d x + c\right )^{9} - 55 \, b^{8} \sin \left (d x + c\right )^{9} + 3465 \, a^{3} b^{5} \sin \left (d x + c\right )^{8} - 495 \, a b^{7} \sin \left (d x + c\right )^{8} + 4950 \, a^{4} b^{4} \sin \left (d x + c\right )^{7} - 1980 \, a^{2} b^{6} \sin \left (d x + c\right )^{7} + 4620 \, a^{5} b^{3} \sin \left (d x + c\right )^{6} - 4620 \, a^{3} b^{5} \sin \left (d x + c\right )^{6} + 2772 \, a^{6} b^{2} \sin \left (d x + c\right )^{5} - 6930 \, a^{4} b^{4} \sin \left (d x + c\right )^{5} + 990 \, a^{7} b \sin \left (d x + c\right )^{4} - 6930 \, a^{5} b^{3} \sin \left (d x + c\right )^{4} + 165 \, a^{8} \sin \left (d x + c\right )^{3} - 4620 \, a^{6} b^{2} \sin \left (d x + c\right )^{3} - 1980 \, a^{7} b \sin \left (d x + c\right )^{2} - 495 \, a^{8} \sin \left (d x + c\right )}{495 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 5.37, size = 231, normalized size = 3.00 \begin {gather*} -\frac {{\sin \left (c+d\,x\right )}^3\,\left (\frac {a^8}{3}-\frac {28\,a^6\,b^2}{3}\right )-{\sin \left (c+d\,x\right )}^5\,\left (14\,a^4\,b^4-\frac {28\,a^6\,b^2}{5}\right )-{\sin \left (c+d\,x\right )}^7\,\left (4\,a^2\,b^6-10\,a^4\,b^4\right )-a^8\,\sin \left (c+d\,x\right )-{\sin \left (c+d\,x\right )}^9\,\left (\frac {b^8}{9}-\frac {28\,a^2\,b^6}{9}\right )+\frac {b^8\,{\sin \left (c+d\,x\right )}^{11}}{11}-4\,a^7\,b\,{\sin \left (c+d\,x\right )}^2+\frac {4\,a\,b^7\,{\sin \left (c+d\,x\right )}^{10}}{5}+2\,a^5\,b\,{\sin \left (c+d\,x\right )}^4\,\left (a^2-7\,b^2\right )+a\,b^5\,{\sin \left (c+d\,x\right )}^8\,\left (7\,a^2-b^2\right )+\frac {28\,a^3\,b^3\,{\sin \left (c+d\,x\right )}^6\,\left (a^2-b^2\right )}{3}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________